package com.lang.beans;

import java.util.Date;

/**
 * Task entity. @author MyEclipse Persistence Tools
 */

public class Task implements java.io.Serializable {

	// Fields

	private Integer id;
	private Parcel parcel;
	private Courier courier;   //任务负责的邮差
	private Date start_time;  //任务开始时间
	private Date finish_time;  //任务结束时间

	// Constructors

	/** default constructor */
	public Task() {
	}

	public Task(Parcel parcel, Courier courier, Date start_time) {
		super();
		this.parcel = parcel;
		this.courier = courier;
		this.start_time = start_time;
	}

	public Task(Integer id, Parcel parcel, Courier courier, Date start_time,
			Date finish_time) {
		super();
		this.id = id;
		this.parcel = parcel;
		this.courier = courier;
		this.start_time = start_time;
		this.finish_time = finish_time;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Parcel getParcel() {
		return this.parcel;
	}

	public void setParcel(Parcel parcel) {
		this.parcel = parcel;
	}

	public Courier getCourier() {
		return this.courier;
	}

	public void setCourier(Courier courier) {
		this.courier = courier;
	}

	public Date getStart_time() {
		return start_time;
	}

	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}

	public Date getFinish_time() {
		return finish_time;
	}

	public void setFinish_time(Date finish_time) {
		this.finish_time = finish_time;
	}

}